<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>response</title>
<style type="text/css">
body 
  {
  background-image:url(bbb.jpg);
  background-repeat:no-repeat;
  background-attachment:fixed;
  background-size: cover;

  }
  </style>
</head>
<body>

<% 
   int sum=0;
   String[] test = new String[5]; 
   
   
    test[0] = request.getParameter("test1");
    test[1] = request.getParameter("test2");
    test[2] = request.getParameter("test3");
    test[3] = request.getParameter("test4");
    test[4] = request.getParameter("test5");
    
    for(int i=0; i<test.length;i++)
    {
    	if(test[i]==null)
    		test[i]="e";
    	
    }
    
    if(test[0].equals("a")) 
    	sum+=20;
    if(test[1].equals("a")) 
    	sum+=20;
    if(test[2].equals("a")) 
    	sum+=20;
    if(test[3].equals("a")) 
    	sum+=20;
    if(test[4].equals("a")) 
    	sum+=20;


   out.print("<br><br><h1 align='center'><font color='red'>您本次C语言测试成绩为："+sum+ " 分</font</h2>");
%>





</body>
</html>